<!--河南星辰软件科技有限公司
@copyright Copyright (c) 2010~2022 All rights reserved.
-->
<template>
  <div class='app-container'>
    <el-form ref="form" :rules="rules" label-width="100px" id="mvcfm">
      <el-button @click="gotoPage('/mes/produce/flow/SlotAdd?'+vueparams+'')" type='success' size="mini"><i class='fa fa-plus'></i>增加时段</el-button>
      <div class="form-unit">
        <span class="mvc-title-left"> 调整日加工时长 </span>
      </div>
      <el-table>
        <el-table-column label="工序" prop="">
        </el-table-column>
        <el-table-column label="完成日期" prop="">
        </el-table-column>
        <el-table-column label="工作组" prop="">
        </el-table-column>
        <el-table-column label="工作能力(S)" prop="">
        </el-table-column>
        <el-table-column label="需求数量" prop="">
        </el-table-column>
        <el-table-column label="任务开始时间" prop="">
        </el-table-column>
        <el-table-column label="日加工数量" prop="">
        </el-table-column>
        <el-table-column label="加班开始时间" prop="">
          <template slot-scope="scope"> 时： 分： </template>
        </el-table-column>
        <el-table-column label="加班结束时间" prop="">
          <template slot-scope="scope"> 时： 分： </template>
        </el-table-column>
      </el-table>
      <div class="form-unit">
        <span class="mvc-title-left"> 调整班组 </span>
      </div>
      <el-table>
        <el-table-column label="工序" prop="">
        </el-table-column>
        <el-table-column label="完成日期" prop="">
        </el-table-column>
        <el-table-column label="现有班组" prop="">
        </el-table-column>
        <el-table-column label="加工能力" prop="">
        </el-table-column>
        <el-table-column label="需求数量" prop="">
        </el-table-column>
        <el-table-column label="任务开始时间" prop="">
        </el-table-column>
        <el-table-column label="日加工数量" prop="">
        </el-table-column>
        <el-table-column label="添加班组" prop="">
          <template slot-scope="scope">
            <el-link @click="gotoPage('/mes/produce/flow/ChoiceDevice?'+vueparams+'')" type='primary'>{{scope.row['']}}</el-link>
          </template>
        </el-table-column>
      </el-table>
      <div class="form-unit">
        <span class="mvc-title-left"> 调整设备 </span>
      </div>
      <el-table>
        <el-table-column label="工序" prop="">
        </el-table-column>
        <el-table-column label="完成日期" prop="">
        </el-table-column>
        <el-table-column label="现用设备" prop="">
        </el-table-column>
        <el-table-column label="设备型号" prop="">
        </el-table-column>
        <el-table-column label="设备规格" prop="">
        </el-table-column>
        <el-table-column label="加工能力" prop="">
        </el-table-column>
        <el-table-column label="需求数量" prop="">
        </el-table-column>
        <el-table-column label="任务开始时间" prop="">
        </el-table-column>
        <el-table-column label="日加工数量" prop="">
        </el-table-column>
        <el-table-column label="添加设备" prop="">
          <template slot-scope="scope">
            <el-link @click="gotoPage('/mes/produce/flow/TeamChoice?'+vueparams+'')" type='primary'>{{scope.row['']}}</el-link>
          </template>
        </el-table-column>
      </el-table>
      <div class="form-unit">
        <span class="mvc-title-left"> 调整采购 </span>
      </div>
      <el-table>
        <el-table-column label="工序" prop="">
        </el-table-column>
        <el-table-column label="完成日期" prop="">
        </el-table-column>
        <el-table-column label="工作能力(S)" prop="">
        </el-table-column>
        <el-table-column label="需求数量" prop="">
        </el-table-column>
        <el-table-column label="任务开始时间" prop="">
        </el-table-column>
        <el-table-column label="日加工数量" prop="">
        </el-table-column>
        <el-table-column label="元器件到货时间" prop="">
          <template slot-scope="scope">
            <el-date-picker v-model="empty" type="date" style='width:100%' value-format="yyyy-MM-dd" />
          </template>
        </el-table-column>
      </el-table>
      <el-button @click="('')" type='success' size="mini"><i class='fa fa-check'></i>保存设置</el-button>
    </el-form>
  </div>
</template>
<script>
  import request from '@/utils/request'
  export default {
    name: 'AdjustBottleneck',
    components: {},
    props: ['popparams'],
    data() {
      return {
        vueparams: this.getVUEParams(""),
        loading: false,
        rules: {}
      }
    },
    created() {
      this.getData();
    },
    updated() {},
    mounted() {},
    methods: {
      getData() {
        request({
          method: 'get',
          url: '/xcapi/VUEAction/mes/produce/flow/ProducePlan/adjustBottleneck?' + this.vueparams,
        }).then(data => {
          for (var k in data) {
            if (Array.isArray(data[k])) {
              this[k] = data[k];
            } else {
              $.extend(this[k], data[k]);
            }
          }
        })
      },
    },
  }
</script>
